﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;

namespace DataAccess
{
    public class ConnectDB
    {
        public static SqlConnection Getconnect()
        {
            //string str = ConfigurationManager.ConnectionStrings["Connect"].ConnectionString;
            //SqlConnection cn = new SqlConnection(@"Data Source=MAIHUONG-PC\MAIHUONG;Initial Catalog=G6_ATM;Integrated Security=True");
            //SqlConnection cn = new SqlConnection(@"Data Source=HANG-PC\\SQL;Initial Catalog=ATM_SYSTEM;Integrated Security=True");
            SqlConnection cn = new SqlConnection(@"Data Source=MINHHIEP;Initial Catalog=ATM_SYSTEM;Integrated Security=True");
            //SqlConnection cn = new SqlConnection(str);
            return cn;
        }
        
    }
}
